package com.nmsl.system.medical_temp.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.nmsl.common.annotation.Excel;
import com.nmsl.common.core.domain.BaseEntity;

/**
 * 病例模板对象 medical_template
 * 
 * @author gmh
 * @date 2025-02-14
 */
public class MedicalTemplate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 模板编号 */
    @Excel(name = "模板编号")
    private Long templateId;

    /** 模板名称 */
    @Excel(name = "模板名称")
    private String templateName;

    /** 诊断 */
    @Excel(name = "诊断")
    private String diagnosis;

    /** 模板权限 */
    @Excel(name = "模板权限")
    private String templatePermission;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creationTime;

    /** 员工姓名 */
    @Excel(name = "员工姓名")
    private Long adminId;

    /** 病例信息编号 */
    @Excel(name = "病例信息编号")
    private Long medicalHistoryId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTemplateId(Long templateId) 
    {
        this.templateId = templateId;
    }

    public Long getTemplateId() 
    {
        return templateId;
    }
    public void setTemplateName(String templateName) 
    {
        this.templateName = templateName;
    }

    public String getTemplateName() 
    {
        return templateName;
    }
    public void setDiagnosis(String diagnosis) 
    {
        this.diagnosis = diagnosis;
    }

    public String getDiagnosis() 
    {
        return diagnosis;
    }
    public void setTemplatePermission(String templatePermission) 
    {
        this.templatePermission = templatePermission;
    }

    public String getTemplatePermission() 
    {
        return templatePermission;
    }
    public void setCreationTime(Date creationTime) 
    {
        this.creationTime = creationTime;
    }

    public Date getCreationTime() 
    {
        return creationTime;
    }
    public void setAdminId(Long adminId) 
    {
        this.adminId = adminId;
    }

    public Long getAdminId() 
    {
        return adminId;
    }
    public void setMedicalHistoryId(Long medicalHistoryId) 
    {
        this.medicalHistoryId = medicalHistoryId;
    }

    public Long getMedicalHistoryId() 
    {
        return medicalHistoryId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("templateId", getTemplateId())
            .append("templateName", getTemplateName())
            .append("diagnosis", getDiagnosis())
            .append("templatePermission", getTemplatePermission())
            .append("creationTime", getCreationTime())
            .append("adminId", getAdminId())
            .append("medicalHistoryId", getMedicalHistoryId())
            .toString();
    }
}
